export function fitterYMRTime(time) {
    let date = time;
    const year = new Date(date).getFullYear();
    const mouth = `${new Date(date).getMonth()+1}`.padStart(2, 0);
    const day = `${new Date(date).getDate()}`.padStart(2, 0);
    return `${year}-${mouth}-${day}`;
}

export function fitterTime(time) {
    let date = time;
    const year = new Date(date).getFullYear();
    const mouth = `${new Date(date).getMonth()+1}`.padStart(2, 0);
    const day = `${new Date(date).getDate()}`.padStart(2, 0);
    const hour = `${new Date(date).getHours()}`.padStart(2, 0);
    const minute = `${new Date(date).getSeconds()}`.padStart(2, 0);
    const Minutes = `${new Date(date).getMinutes()}`.padStart(2, 0);
    return `${year}-${mouth}-${day} ${hour}:${Minutes}:${minute}`;
}